package com.test;

import java.util.concurrent.*;

public class test7 {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        class Call implements Callable<String> {

            @Override
            public String call(){
                return "hello";
            }
        }
        ExecutorService theadPool= Executors.newFixedThreadPool(100);
        Future<String> result=theadPool.submit(new Call());
        System.out.println(result.get());
    }

}
